package com.hr.Person;

import com.hr.pojo.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("person")
@ResponseBody
public class personCantroller {

    @PostMapping("addPerson")
    public Person addPerson(@RequestBody Person person){
        return person;
    }
}
